<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
class SessionData{
    public static function getPerfil(){
        if(isset($_SESSION['userData']['perfil'])){
            return $_SESSION['userData']['perfil'];
        }else{
            return PERFIL_ADMINISTRADOR;
        }
    }
    
    public static function getId(){
        return $_SESSION['userData']['id'];
    }
    
    public static function getNombre(){
        if(isset($_SESSION['userData']['nombre'])){
             return $_SESSION['userData']['nombre'];
        }else{
            return 'General';
        }
    }
}
